package com.un.ebs.memorial.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.un.ebs.core.util.OSSUtil;
import com.un.ebs.core.util.StringUtils;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author liubo
 * @since 2020-03-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Component
@TableName("tb_memorial")
public class Memorial extends Model<Memorial> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.UUID)
    private String id;

    private String name;

    private String nameDesc;

    private String defunctId;

    private String content;

    private String logo;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    private String createAt;

    private String createAtName;

    private String currImage;

    private String currMusic;

    private String currOpenId;

    private String frontCover;

    @TableField(fill = FieldFill.UPDATE)
    private Date lastUpdateTime;

    private Boolean isTop;

    @TableLogic
    private Boolean isDelete;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }


}